/******************************************************************************/
/* csms_def.h                                                                 */
/******************************************************************************/

#ifndef __csms_DEF_H
#define __csms_DEF_H


/********************** Macros & Constants for CSMS ***************************/


/********************** Prototype struct for CSMS *****************************/

typedef enum
{
    CSMS_GET_LOG = 0,
    CSMS_GET_DIN,
    CSMS_GET_AIN,
    CSMS_GET_RELAY,
    CSMS_GET_TEMP,
    CSMS_GET_SYS_TIME,
    CSMS_GET_REV_FW
} __CMD_CSMS;


#pragma pack(1)
typedef struct
SETT_CSMS
{
    SETT_CSMS() : reaction(0xFFFF) {}

    uint8_t cmd[24];
    uint16_t reaction;
    uint16_t reserv16;
    uint32_t reserv1;
    uint32_t reserv2;
    uint32_t reserv3;
} __SETT_CSMS;                                    // Type CSMS sett
#pragma pack()


#endif